package com.example.elemboot.Dao;

import com.example.elemboot.Entity.Business;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface IBusiness extends CrudRepository<Business,Integer> {
    List<Business> findBusinessesByBusinessNameContaining(String kw);
    List<Business> findBusinessesByOrderTypeIdEquals(Integer orderTypeId);
    Business findBusinessByBusinessId(Integer businessId);
}
